import dao.PackageDao;
import utils.DBUtils;

public class Test {
    //连接Oracle数据库测试
    public static void main(String[] args) {
        /*try {
            //加载驱动
           Class.forName("oracle.jdbc.driver.OracleDriver");
            System.out.println("驱动加载成功");
            //加载连接
            String ulr = "jdbc:oracle:thin:@localhost:1521:xe";
            String user = "mobile_service";
            String password = "123";
            Connection conn = DriverManager.getConnection(ulr, user, password);
            System.out.println("连接成功");
            Statement statement = conn.createStatement();
            String sql = "select * from SERVICEPACKAGE t";
            ResultSet rs=statement.executeQuery(sql);
            while (rs.next()){
                System.out.println(rs.getString(1)+"\t"+rs.getString(2));
            }
        }
        catch (Exception e) {
            e.printStackTrace();
        }*/
        DBUtils dbUtils=new DBUtils();
        /*MoblieCardDao moblieCardDao=new MoblieCardDao();
        System.out.println(moblieCardDao.findAll());*/
        PackageDao packageDao =new PackageDao();
        System.out.println(packageDao.findAllMeg().get(1).getTYPE());





    }
}
